@import './variables.less';
/* 移除Google Fonts导入,避免网络问题 */
/* 使用系统字体作为备选 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background-color: @bg-dark;
  color: @text-primary;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 255, 0.5);
}

// 加载状态
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 16px;
  color: @text-primary;
  background: @bg-dark;
  position: relative;
  
  &::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: @primary-color;
    border-bottom-color: @primary-light;
    animation: spin 1s linear infinite;
    margin-top: -50px;
  }
}

// 开发中页面
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  font-size: 18px;
  color: @text-primary;
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 30% 30%, rgba(0, 120, 255, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(0, 180, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
  
  &::after {
    content: '🚀';
    position: absolute;
    font-size: 30px;
    margin-bottom: 80px;
    animation: float 3s ease-in-out infinite;
  }
}

// 动画
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

// 为所有antd组件添加过渡效果
.ant-btn,
.ant-input,
.ant-input-affix-wrapper,
.ant-select,
.ant-radio,
.ant-checkbox,
.ant-switch,
.ant-pagination-item,
.ant-table,
.ant-form-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

// 卡片增强样式
.ant-card {
  backdrop-filter: blur(5px);
} 